package com.liushuai.eas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liushuai.eas.pojo.Category;
import com.liushuai.eas.pojo.Classroom;
import com.liushuai.eas.pojo.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    //查询所有
    List<Course> queryCourseList(int pageBegin, int pageEnd);

    //查询所有通过关键字
    List<Course> queryCourseListBySearch(int pageBegin, int pageEnd, String search);

    //查询总数
    int queryTotal();

    //查询总数通过关键字
    int queryTotalBySearch(String search);

    //通过ID查询
    Course selectOne(int id);

}
